﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.Order_ModelVMs
{
    public partial class Order_ModelTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Order_Model._orderType")]
        public ExcelPropety OrderType_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.OrderType);
        [Display(Name = "_Model._Order_Model._orderCode")]
        public ExcelPropety OrderCode_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.OrderCode);
        [Display(Name = "_Model._Order_Model._orderQty")]
        public ExcelPropety OrderQty_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.OrderQty);
        [Display(Name = "_Model._Order_Model._order_Status")]
        public ExcelPropety Order_Status_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.Order_Status);
        [Display(Name = "_Model._Order_Model._materialCode")]
        public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.MaterialCode);
        [Display(Name = "_Model._Order_Model._materialId")]
        public ExcelPropety MaterialId_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.MaterialId);
        [Display(Name = "_Model._Order_Model._materialName")]
        public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.MaterialName);
        [Display(Name = "_Model._Order_Model._materialVersion")]
        public ExcelPropety MaterialVersion_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.MaterialVersion);
        [Display(Name = "_Model._Order_Model._scheduleCode")]
        public ExcelPropety ScheduleCode_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.ScheduleCode);
        [Display(Name = "_Model._Order_Model._scheduleQty")]
        public ExcelPropety ScheduleQty_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.ScheduleQty);
        [Display(Name = "_Model._Order_Model._scheduleEditTime")]
        public ExcelPropety ScheduleEditTime_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.ScheduleEditTime);
        [Display(Name = "_Model._Order_Model._scheduleId")]
        public ExcelPropety ScheduleId_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.ScheduleId);
        [Display(Name = "_Model._Order_Model._scheduleStationId")]
        public ExcelPropety ScheduleStationId_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.ScheduleStationId);
        [Display(Name = "_Model._Order_Model._MOrderStatus")]
        public ExcelPropety MOrderStatus_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.MOrderStatus);
        [Display(Name = "_Model._Order_Model._workshopCode")]
        public ExcelPropety WorkshopCode_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.WorkshopCode);
        [Display(Name = "_Model._Order_Model._workshopName")]
        public ExcelPropety WorkshopName_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.WorkshopName);
        [Display(Name = "_Model._Order_Model._lineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.LineCode);
        [Display(Name = "_Model._Order_Model._lineName")]
        public ExcelPropety LineName_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.LineName);
        [Display(Name = "_Model._Order_Model._stationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.StationCode);
        [Display(Name = "_Model._Order_Model._stationName")]
        public ExcelPropety StationName_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.StationName);
        [Display(Name = "_Model._Order_Model._equipmentCode")]
        public ExcelPropety EquipmentCode_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.EquipmentCode);
        [Display(Name = "_Model._Order_Model._startTime")]
        public ExcelPropety StartTime_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.StartTime);
        [Display(Name = "_Model._Order_Model._endTime")]
        public ExcelPropety EndTime_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.EndTime);
        [Display(Name = "_Model._Order_Model._factoryCode")]
        public ExcelPropety FactoryCode_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.FactoryCode);
        [Display(Name = "_Model._Order_Model._field1")]
        public ExcelPropety Field1_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.Field1);
        [Display(Name = "_Model._Order_Model._field2")]
        public ExcelPropety Field2_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.Field2);
        [Display(Name = "_Model._Order_Model._field3")]
        public ExcelPropety Field3_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.Field3);
        [Display(Name = "_Model._Order_Model._field4")]
        public ExcelPropety Field4_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.Field4);
        [Display(Name = "_Model._Order_Model._field5")]
        public ExcelPropety Field5_Excel = ExcelPropety.CreateProperty<Order_Model>(x => x.Field5);

	    protected override void InitVM()
        {
            
        }

    }

    public class Order_ModelImportVM : BaseImportVM<Order_ModelTemplateVM, Order_Model>
    {
            //import

    }

}